<div class="section">
     <?if(Yii::app()->user->hasFlash('opersuc')):?>
    <div class="messages green" onclick="$(this).fadeOut();" style="cursor:pointer;float:left;clear: both;padding-right: 10px;"><span></span><?=Yii::app()->user->getFlash('opersuc');?> </div>
    <?endif?>
		<div class="box">
			<div class="title">
				<h2><?=Yii::t('app','Редактирование менеджера')?></h2>
				<span class="hide"></span>
			</div>
<div class="content forms">

    <?$form=$this->beginWidget('CActiveForm', array(
        'id'=>'addnews-form',
        'enableAjaxValidation'=>true,
    )); ?>

    <?=$form->errorSummary($user); ?>

				
					<div class="line" style="border-top-width: 2px; border-top-style: solid; border-top-color: rgb(242, 244, 247); border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: rgb(242, 244, 247); ">
						<?=$form->label($user,'firstname'); ?>
                        <?=CHtml::activeTextField($user,'firstname',array('class'=>'small')); ?>
					</div>


    <div class="line">
      						<?=$form->label($user,'lastname'); ?>
                              <?=CHtml::activeTextField($user,'lastname',array('class'=>'small')); ?>
      					</div>

    <div class="line">
          						<?=$form->label($user,'username'); ?>
                                  <?=CHtml::activeTextField($user,'username',array('class'=>'small')); ?>
          					</div>
    <div class="line">
            						<label>Новый пароль</label>
                                    <input type="password" class="small" name="Users[new_password]">
                                    <?=CHtml::activeHiddenField($user,'password',array('class'=>'small')); ?>
            					</div>





					


                    <div class="line button">
                                          
                                            <button type="submit" class="green medium"><span><?=Yii::t('app','Сохранить');?></span></button>
                                            <button type="submit" onclick="window.location.replace('<?=$this->createUrl("news/")?>');return false; " class="blue medium"><span>Отмена</span></button>
                                            
                                        </div>

    <?$this->endWidget(); ?>

			</div>
		</div>
	